﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace GDev.PopupBox.Effects
{
    public class NoEffect : Effect
    {
        #region 重写方法

        public override void PerformInEffect()
        {
            Target.Element.Visibility = Visibility.Visible;
            OnComplete(EventArgs.Empty);
        }

        public override void PerformOutEffect()
        {
            Target.Element.Visibility = Visibility.Collapsed;
            OnComplete(EventArgs.Empty);
        }

        #endregion

        #region 构造

        public NoEffect(IPopupBox target)
            : base(target)
        {
        }

        #endregion
    }
}
